import {Http} from "../utils/http"
import {User} from "./user"

class Apply {
    static async applyJoin(data) {
        const user = new User()
        if (!user.user) {
            return
        }
        return await Http.request({
            url: `/users/${user.user.id}/apply`,
            data,
            method: 'POST'
        })
    }
    static async getApplyInfo() {
        const user = new User()
        if (!user.user) {
            return
        }
        return await Http.request({
            url: `/users/${user.user.id}/apply`
        })
    }
}
export {
    Apply
}
